﻿<UserControl  x:Class="WPFExcelReport.Controls.TImage"
              xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
              Background="White"  
              Name="TV"
     >
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <WrapPanel>
            <Button Grid.Row="0" Click="PrePageCommand"  Height="20" Margin="5,0,0,0" Width="24" BorderBrush="White">
                <Button.Background>
                    <ImageBrush  ImageSource="/ImagePackage;component/Images/arrow-left.png" Stretch="Fill"/>
                </Button.Background>
            </Button>
            <Button Grid.Row="0" Click="NextPageCommand"  Height="20" Margin="5,0,0,0" Width="24" BorderBrush="White">
                <Button.Background>
                    <ImageBrush  ImageSource="/ImagePackage;component/Images/arrow-right.png" Stretch="Fill" />
                </Button.Background>
            </Button>
        </WrapPanel>
        <Image  Name="cImage" Grid.Row="1" Height="300"
               Source="{Binding Path=PHOTOLINK, ElementName=TV}" 
                  MouseLeftButtonDown="Image_MouseLeftButtonUp"
                Stretch="Uniform" 
       />
    </Grid>
   
</UserControl >
